-
Notifications
You must be signed in to change notification settings - Fork 2
Updated tests with new error IDs #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
import matlab.unittest.fixtures.WorkingFolderFixture; | ||
testcase.applyFixture(WorkingFolderFixture); | ||
|
||
% Add the existing files to the current folder | ||
copyfile(fullfile(currDir,'dataFiles'),pwd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this get get cleaned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The WorkingFolderFixture automatically takes care of it. See https://www.mathworks.com/help/matlab/ref/matlab.unittest.fixtures.workingfolderfixture-class.html#bu2oxjj-2
'Compression',comp),testcase.PyException); | ||
'Compression',comp),errID); | ||
|
||
comp = 'zlib'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here for this test?
zarrwrite(testcase.ArrPathWrite,expData); | ||
|
||
actData = zarrread(testcase.ArrPathWrite); | ||
testcase.verifyEqual(actData,expData,'Failed to verify data.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also test if the correct compression was used (using zarrinfo)?
zarrwrite(testcase.ArrPathWrite,expData); | ||
|
||
actData = zarrread(testcase.ArrPathWrite); | ||
testcase.verifyEqual(actData,expData,'Failed to verify data.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also test if the correct compression was used (using zarrinfo)?
Fix for #64 |
Updated tests with new error IDs